import request from '@/utils/request'

// 查询商品报价列表
export function listSkuPrice(query) {
  return request({
    url: '/quote/skuPrice/list',
    method: 'post',
    data: query
  })
}

export function listSettlePrice(query) {
  return request({
    url: '/goods/skuPrice/listSettlePrice',
    method: 'post',
    data: query
  })
}

export function listGuidePrice(query) {
  return request({
    url: '/goods/skuPrice/listGuidePrice',
    method: 'post',
    data: query
  })
}

export function listPurchasePrice(query) {
  return request({
    url: '/goods/skuPrice/listPurchasePrice',
    method: 'post',
    data: query
  })
}

// 查询商品报价详细
export function getSkuPrice(id) {
  return request({
    url: '/goods/skuPrice/' + id,
    method: 'get'
  })
}

// 新增商品报价
export function addSkuPrice(data) {
  return request({
    url: '/goods/skuPrice/add',
    method: 'post',
    data: data
  })
}

// 修改商品报价
export function updateSkuPrice(data) {
  return request({
    url: '/goods/skuPrice/update',
    method: 'post',
    data: data
  })
}

// 删除商品报价
export function delSkuPrice(id) {
  return request({
    url: '/goods/skuPrice/delete/' + id,
    method: 'post'
  })
}